home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 139
/
(Vol 139) Sep 24 2011.iso
/
Games
/
kirby.swf
/
scripts
/
frame_12
/
PlaceObject2_263_206
/
CLIPACTIONRECORD onClipEvent(load).as
< prev
Wrap
Text File
|
2011-09-24
|
2KB
|
92 lines
onClipEvent(load){
function Blockpuff(Block)
{
duplicateMovieClip(_root.Level.BPuff,"Bpuff" add _root.BlockPZ,16384 + _root.BlockPZ);
_root.Level["Bpuff" add _root.BlockPZ]._x = _root.Level["B" add Block]._x;
_root.Level["Bpuff" add _root.BlockPZ]._y = _root.Level["B" add Block]._y;
_root.BlockPZ += 1;
if(5 < _root.BlockPZ)
{
_root.BlockPZ = 1;
}
}
function runstaub()
{
duplicateMovieClip(_root.Level.runstaub,"runstaub" add RstaubZ,16384 + (RstaubZ + 100));
_root.Level["runstaub" add RstaubZ]._x = this._x - _root.Level._x;
_root.Level["runstaub" add RstaubZ]._y = this._y - _root.Level._y;
_root.Level["runstaub" add RstaubZ]._xscale = this._xscale;
_root.Level["runstaub" add RstaubZ].gotoAndPlay(1);
RstaubZ += 1;
if(5 < RstaubZ)
{
RstaubZ = 1;
}
_root.Level.runstaub._x = this._x - _root.Level._x;
_root.Level.runstaub._y = this._y - _root.Level._y;
}
if(_root.SetKeys == "on")
{
up = _root.Buttonup;
down = _root.Buttondown;
left = _root.Buttonleft;
right = _root.Buttonright;
attack = _root.Buttonattack;
Jump = _root.ButtonJump;
SPout = _root.ButtonDrop;
}
else
{
up = "38";
down = "40";
left = "37";
right = "39";
attack = "18";
Jump = "32";
SPout = "13";
}
BoomZ = 50;
_root.Door = 0;
JumpDown = "off";
SPattack = "off";
normMainSpeed = 7;
Jumpspeed = 15;
Jumptime = 5;
YSpeed = 10;
isjumping = "off";
isAttacking = "off";
normGravity = 3;
normMaxYSpeed = 10;
MinusX = 1;
Yform = 100;
FlySpeed = 5;
Fly = "off";
Fat = "off";
spit = "off";
Spiting = "off";
XMSpace = 200;
YMSpace = 125;
YMSpaceD = 50;
Movheight = 300;
Movwidth = 450;
_root.Movheight = 300;
_root.Movwidth = 450;
CSPattack = "off";
attackdemo = "off";
SPAStarBreak = 0.95;
MSPattack = "off";
_root.Blocks = 20;
_root.Grounds = 10;
hit = "off";
Ypos = "disabled";
SPAStarVisZ = 200;
_root.WaddleDees = 5;
var forvar2 = 1;
while(_root.WaddleDees >= forvar2)
{
_root.Level["WaddleDee" add forvar2].X = 2;
forvar2++;
}
DY = 10;
}